s='fdcdefggfss'
number=0
s1=''
s2=''
print number
while number<len(s)-1:
    
    index=number
    if ord(s[index])<ord(s[index+1]):
        print ord(s[index]),ord(s[index+1])
        s1+=s[index]
        number+=1
    elif ord(s[index])==ord(s[index+1]):
        s1+=s[index]  
        number+=1
    elif s1!=''and ord(s[index])>ord(s[index+1]):
        s1+=s[index]
        number+=1
        break
print number
print s1
